package com.ruoyi.analysis.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * @author WeiHanQiang
 * @date 2025/08/18 05:54
 **/
public class AnalyzePayloadResp {

    /** 有效预序列 */
    @Excel(name = "有效预序列")
    private String validPreSequence;

    /** 样品光谱波长数据 */
    @Excel(name = "样品光谱波长数据")
    private String waveData;

    /** 选中的波长 */
    @Excel(name = "选中的波长")
    private String selectedIndices;

    /** 系数列表 */
    @Excel(name = "系数列表")
    private List<Double> coef;

    /** 截距 */
    @Excel(name = "截距")
    private Long intercept;

    public AnalyzePayloadResp() {
    }

    public AnalyzePayloadResp(String validPreSequence, String waveData, String selectedIndices, List<Double> coef, Long intercept) {
        this.validPreSequence = validPreSequence;
        this.waveData = waveData;
        this.selectedIndices = selectedIndices;
        this.coef = coef;
        this.intercept = intercept;
    }

    public String getValidPreSequence() {
        return validPreSequence;
    }

    public void setValidPreSequence(String validPreSequence) {
        this.validPreSequence = validPreSequence;
    }

    public String getWaveData() {
        return waveData;
    }

    public void setWaveData(String waveData) {
        this.waveData = waveData;
    }

    public String getSelectedIndices() {
        return selectedIndices;
    }

    public void setSelectedIndices(String selectedIndices) {
        this.selectedIndices = selectedIndices;
    }

    public List<Double> getCoef() {
        return coef;
    }

    public void setCoef(List<Double> coef) {
        this.coef = coef;
    }

    public Long getIntercept() {
        return intercept;
    }

    public void setIntercept(Long intercept) {
        this.intercept = intercept;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("validPreSequence", getValidPreSequence())
                .append("waveData", getWaveData())
                .append("selectedIndices", getSelectedIndices())
                .append("coef", getCoef())
                .append("intercept", getIntercept())
                .toString();
    }
}
